/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.car.service;

import java.util.List;

import com.thinkgem.jeesite.modules.car.dao.GpsCarInfoDao;
import com.thinkgem.jeesite.modules.car.entity.GpsCarInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.car.entity.GpsInfo;
import com.thinkgem.jeesite.modules.car.dao.GpsInfoDao;

/**
 * 定位信息Service
 * @author xiaoqian
 * @version 2018-01-06
 */
@Service
@Transactional(readOnly = true)
public class GpsInfoService extends CrudService<GpsInfoDao, GpsInfo> {

	@Autowired
	private GpsInfoDao gpsInfoDao;

	public GpsInfo get(String id) {
		return super.get(id);
	}
	
	public List<GpsInfo> findList(GpsInfo gpsInfo) {
		return super.findList(gpsInfo);
	}

	public List<GpsInfo> findAllList(GpsInfo gpsInfo) {
		return gpsInfoDao.findAllList(gpsInfo);
	}
	
	public Page<GpsInfo> findPage(Page<GpsInfo> page, GpsInfo gpsInfo) {
		return super.findPage(page, gpsInfo);
	}
	
	@Transactional(readOnly = false)
	public void save(GpsInfo gpsInfo) {
		super.save(gpsInfo);
	}
	
	@Transactional(readOnly = false)
	public void delete(GpsInfo gpsInfo) {
		super.delete(gpsInfo);
	}

	public GpsInfo findBySim(String simNo){
		return gpsInfoDao.findBySim(simNo);
	}
	
}